#pragma once
#include <windows.h>
#include <chrono>

class _declspec(dllimport) Timer {
public:
	Timer(unsigned short _fps);
	uint64_t getClockFreq() const;
	void mark();
	double nextFps() const;
	~Timer();
private:
	LARGE_INTEGER* m_clock_freq = nullptr;

	long long m_last = 0;
	long long m_interval = 0;
	unsigned short m_fps = 0;

	long long now() const;
};
